#ifndef __TCP_CLIENT_H__
#define __TCP_CLIENT_H__

#include <sys/types.h>
#include <sys/socket.h>
#include <stdio.h>
#include <netinet/in.h>
#include <arpa/inet.h>
#include <unistd.h>
#include <string.h>
#include <stdlib.h>
#include <fcntl.h>
#include <sys/shm.h>
#include "netdb.h"
#include "app_log.h"
#include "network.h"

#define POP3PORT 110
#define BUFFER_SIZE 20480

int search_dns(char *buf);
int get_connection();
void tcp_send_data(char * sendbuf,char * recvbuf,int sleep_time);
void close_connection();
void tcp_read_data(void);
void tcp_cycle_readout_data(char *recvbuf);

#endif